package com.c.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.c.entity.OrderSetting;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.HashMap;
import java.util.List;

/**
 * @author wangxiangli
 * @create 2022-12-29-16:07
 */
@Repository
public interface OrderSettingMapper extends BaseMapper<OrderSetting> {
    //根据日期范围查询预约设置信息
    List<OrderSetting> getOrderSettingByMonth(HashMap<String, String> map);
    //当前日期已经进行了预约设置，需要执行更新操作
    void editNumberByOrderDate(OrderSetting orderSetting);
    //当前日期没有就那些预约设置，需要执行插入操作
    void add(OrderSetting orderSetting);
}
